package com.nimble.smile.service;

import com.nimble.smile.service.vo.AccountAuthDTO;
import com.nimble.smile.service.vo.EmotionDTO;
import com.nimble.smile.service.vo.ImageDTO;
import com.nimble.smile.service.vo.SignupDTO;

import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2016/8/12 0012.
 */
public interface Service {

    @GET("upload/token")
    Observable<ResponseEntityBody<String>> getToken();

    @POST("img/add")
    Observable<ResponseEntityBody<Double>> getHappiness(@Body ImageDTO image);

    @POST("auth")
    Observable<ResponseEntityBody<String>> auth(@Body AccountAuthDTO accountAuthDTO);

    @POST("signup/emp")
    Observable<ResponseEntityBody> staffSignUp(@Body SignupDTO signupDTO);

    @GET("img/rank/list")
    Observable<ResponseEntityBody<Page<EmotionDTO>>> getRankList();

}
